﻿using System;
using System.Collections.Generic;
using System.Text;
using AMS.Configuration;

namespace AMS.ComponentModel
{
    /// <summary>
    /// 导出器
    /// </summary>
    public interface IExporter
    {
        /// <summary>
        /// 导出器标题
        /// </summary>
        string ExporterCaption { get; set; }
        /// <summary>
        /// 数据源的名称，用于描述导出的数据源
        /// </summary>
        string DataSourceName { get; set; }
        /// <summary>
        /// 数据源(DataTable, IEnumerable)
        /// </summary>
        object DataSource { get; set; }
        /// <summary>
        /// 数据源的配置信息
        /// </summary>
        ListConfigInfo Config { get; set; }
        
        /// <summary>
        /// 导出数据
        /// </summary>
        void Export();
    }
}
